<div class="columns__content">
    <div class="n-user-info-title user-info">
        <h3><?= lang('about_me') ?> <a title="<?= lang('edit') ?>" class="js-edit-profile n-edit-button" href="<?= url_create('site', 'account', 'update') ?>"><?= lang('edit') ?></a>
        </h3>
        <table class="n-user-person">
            <tbody>

                <?
                foreach ($attributes as $attribute) {
                    if ($attribute->p_id != 0)
                        continue;
                    ?>
                    <tr>
                        <th><?= $attribute->name ?> <?= strlen($attribute->unit) > 0 ? $attribute->unit : '' ?></th>
                        <td><?
                            if (!is_array($attribute->value))
                                echo $attribute->value;
                            else
                            if (count($attribute->value) > 0) {
                                echo $attribute->value[0];
                                for ($i = 1; $i < count($attribute->value); $i++) {
                                    echo ', ' . $attribute->value[$i];
                                }
                            }
                            ?></td>
                    </tr>
<? } ?>
            </tbody>
        </table>
    </div>
</div>